package com.xayy.mgt.service;

import cn.kawins.base.result.CheckResult;
import cn.kawins.mybatis.BaseService;
import com.github.pagehelper.PageInfo;
import com.xayy.mgt.model.HistoryFault;
import com.xayy.mgt.model.vo.HistoryFaultPageVo;

public interface HistoryFaultService extends BaseService<HistoryFault> {
    PageInfo<HistoryFault> pageList(HistoryFaultPageVo nodeInfoDto);

    CheckResult<Object> saveHistoryFault(HistoryFault historyFault);

    CheckResult<Object> editHistoryFault(HistoryFault historyFault);

    CheckResult<Object> deleteHistoryFault(Long id);

    CheckResult<Object> selectOneHistoryFaultDetail(Long id);

    /**
     * 数据同步
     * @return CheckResult
     */
    CheckResult<Object> dataSynchronous(Long nodeId);
}
